package cate.common.game.trace;

import cate.common.game.trace.entity.RoleLevelUpLog;
import cate.common.game.trace.entity.RolePowerChangeLog;
import cate.common.game.trace.entity.RoleTraceCareerLog;
import cate.common.game.trace.entity.RoleTraceDailyLog;
import easy.java.io.file.FileRead;

public class GameTraceUtils {

    public static String[] initSqlAll() {
        return new String[] {
                RoleLevelUpLog.initSql(),
                RolePowerChangeLog.initSql(),
                RoleTraceCareerLog.initSql(),
                RoleTraceDailyLog.initSql(),
        };
    }

    public static String sql(String fileName) {
        return FileRead.i.readString(GameTraceUtils.class.getClassLoader().getResourceAsStream("sql/trace/" +fileName+".sql"));
    }
}
